﻿using System.Web;

namespace SecurityModule
{
    /// <summary>
    /// Interface to implement various rewriting workflows.
    /// </summary>
    interface IWorkflow
    {
        /// <summary>
        /// Defines what to do when intercepting an incoming request before arriving at the app.
        /// </summary>
        /// <param name="context"></param>
        void PreProcess(HttpContext context);
        /// <summary>
        /// Defines what to do when intercepting processed request (and its reponse) after arriving at the app.
        /// </summary>
        /// <param name="context"></param>
        void PostProcess(HttpContext context);
    }
}
